Resizable Dynamic Browser
The Progress 4GL supports end users changing the way the data is displayed in a data browser. The changes occur only in the user interface; they do not change field widths or column positions in the data source.
|
To launch this module, choose the Resizable Dynamic Browser button on the SportsPro main window. The Find Order dialog box appears:
|
In a normal browser, these attributes are set on the Advanced Properties dialog box in the AppBuilder at design time. Because the browser is dynamic, the attributes have to be set programmatically. The browser also uses the dynamic filters supplied as part of the ADM.
Table 2–6 describes the major objects used in the Resizable Dynamic Browser module.
Table 2–6: Components of the Resizable Dynamic Browser module
|
Object or filename
|
Object type
|
Function
|
|
wfndord.w
|
SmartWindow
|
Serves as a container for the other objects in the module.
|
|
dorder
|
SDO
|
Queries the Order table to retrieve all order records for the query. The module accepts the handle for the instance of dorder in the SportsPro main window.
Note: Because this module uses a handle passed in from the main window, you must run the main window and launch it from there.
|
|
getnewfields.p
|
Procedure file
|
Runs during the initializeObject internal procedure to populate the seldspflds selection list.
|
|
dynfilter
|
SmartFilter
|
Enables the user to dynamically filter the records shown in the browser.
|
|
seldspflds
|
Selection-list
|
Lists the fields in the Order table that can be displayed in the browser.
|
|
BUTTON-2
|
Button
|
Creates a dynamic browser instance from the master file, adm2\dynbrowser.w, using information from the filter and selection list.
|
|
dynbrowser
|
SmartDataBrowser (SDB)
|
Enables the user to browse a result set created dynamically from dorder and information from the filter and selection list.
|
|
tglbrowserresizable
|
Toggle-box
|
Sets the RESIZABLE and SELECTABLE attributes of the browser.
|
|
tglcolmovable
|
Toggle-box
|
Sets the COLUMN–MOVABLE attribute of the browser.
|
|
tglcolumnresizable
|
Toggle-box
|
Sets the COLUMN–RESIZABLE attribute of the browser.
|
|
tglrowresize
|
Toggle-box
|
Sets the ROW–RESIZABLE attribute of the browser.
|
For more information on resizable data browsers and viewers, see the chapters on using the browse object and on direct manipulation in the OpenEdge Development: Progress 4GL Handbook
.